home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
Think C dcmd 1.0 ƒ
/
Think Put Lib source
/
PutTextTo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-13
|
382b
|
22 lines
extern unsigned char buffer[256];
extern short mark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutTextTo(const char* s, int len, int endpos)
{
int i;
if ( endpos > mark )
{
for ( i=0; i<len && mark<endpos; i++ )
PutChar( s[i] );
if ( i < len )
buffer[mark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}